package com.wn.class30.mapper;

import com.wn.class30.entity.Shoppingcar;
import com.wn.class30.entity.ShoppingcarExample;
import java.util.List;
import java.util.Map;

import org.apache.ibatis.annotations.Param;

public interface ShoppingcarDao {
    long countByExample(ShoppingcarExample example);

    int deleteByExample(ShoppingcarExample example);

    int deleteByPrimaryKey(Integer shoppingcarId);

    int insert(Shoppingcar record);

    int insertSelective(Shoppingcar record);

    List<Shoppingcar> selectByExample(ShoppingcarExample example);

    Shoppingcar selectByPrimaryKey(Integer shoppingcarId);

    int updateByExampleSelective(@Param("record") Shoppingcar record, @Param("example") ShoppingcarExample example);

    int updateByExample(@Param("record") Shoppingcar record, @Param("example") ShoppingcarExample example);

    int updateByPrimaryKeySelective(Shoppingcar record);

    int updateByPrimaryKey(Shoppingcar record);

    //根据用户查询购物车中的店铺
    public List<Map<String,Object>> getBusinessByUserId(Integer userid);
    //根据用户id查询购物车中的商品详情 ，仅查询了有用的字段
    public List<Map<String,Object>> getProductByUserId(Integer userid);

}